/*
 * @(#)VersionInfoTypeTransformer.java
 * Date 2013-09-05
 * Version 1.0
 * Author Jim Horner
 * Copyright (c)2012
 */


package us.hornerscorners.lamppost.registry.transformer.xds;

import javax.enterprise.context.ApplicationScoped;
import oasis.names.tc.ebxml_regrep.xsd.rim._3.VersionInfoType;

import org.apache.commons.lang3.StringUtils;

import us.hornerscorners.lamppost.transformer.AbstractTransformer;


/**
 * Class description
 *
 *
 * @version        v1.0, 2013-09-05
 * @author         Jim Horner
 */
@ApplicationScoped
public class VersionInfoTypeTransformer extends AbstractTransformer<String, VersionInfoType> {

    /**
     * Constructs ...
     *
     */
    public VersionInfoTypeTransformer() {
        super();
    }

    /**
     * Method description
     *
     *
     * @param versionName
     *
     * @return
     */
    @Override
    public VersionInfoType transform(String versionName) {

        VersionInfoType result = null;

        if (StringUtils.isNotBlank(versionName)) {

            result = new VersionInfoType();

            result.setVersionName(versionName);
        }

        return result;
    }
}
